package cn.kgc.mapper;

import cn.kgc.dto.Dto;
import cn.kgc.pojo.Comment;
import cn.kgc.vo.*;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface CommentMapper extends Mapper<Comment> {
    HotelAvgScore getHotelAvgScoreByHotelId(@Param("hotelId") Long hotelId);
    CommentCountVo getCommentCountByHotelId(@Param("hotelId") Long hotelId);

    List<CommentVo> getCommentList(CommentPageVo commentPageVo);

    List<CommentImgVo> getCommentImgByCommentId(@Param("commentId") Long commentId);
}